
set more off

set logtype text 

////////////////////////////////////////////////////////////////////////////////////
/// TOTAL N = 240; EXCLUSIONS B/C OF NON-US IP OR FAILED CATCH = 9; MISSING DATA = 1
/// USABLE N = 230
/////////////////////////////////////////////////////////////////////////////////////

//CRONBACH'S ALPHA
alpha IH01Stop IH02Beds IH03Diamonds IH04Dollar IH05Chipmunk IH06OJ IH07Pink IH08White IH09Black IH10Mint IH11Seven IH12Weekend IH13Limbs IH14Eyes IH15Sounds if EXCLUDE==0, item

//CFA
sem (IH -> IH01Stop) (IH -> IH02Beds) (IH -> IH03Diamonds) (IH -> IH04Dollar) (IH -> IH05Chipmunk) (IH -> IH06OJ) ///
(IH -> IH07Pink) (IH -> IH08White) (IH -> IH09Black) (IH -> IH10Mint) (IH -> IH11Seven) ///
(IH -> IH12Weekend) (IH -> IH13Limbs) (IH -> IH14Eyes) (IH -> IH15Sounds) if EXCLUDE==0, latent(IH) ///
cov(e.IH01Stop*e.IH02Beds e.IH01Stop*e.IH03Diamonds e.IH02Beds*e.IH03Diamonds e.IH04Dollar*e.IH05Chipmunk ///
e.IH04Dollar*e.IH06OJ e.IH05Chipmunk*e.IH06OJ e.IH07Pink*e.IH08White e.IH07Pink*e.IH09Black e.IH08White*e.IH09Black ///
e.IH10Mint*e.IH11Seven e.IH10Mint*e.IH12Weekend e.IH11Seven*e.IH12Weekend e.IH13Limbs*e.IH14Eyes e.IH13Limbs*e.IH15Sounds ///
e.IH14Eyes*e.IH15Sounds) nocapslatent standardized

estat gof, stats(all)

log close
